Skip to content

Manually close alert on click / disable auto hide#52

Open
bcampardou wants to merge 4 commits intothemeteorchef:masterfrom
bcampardou:fork
Open

Manually close alert on click / disable auto hide#52
bcampardou wants to merge 4 commits intothemeteorchef:masterfrom
bcampardou:fork

Conversation

@bcampardou
Copy link
Copy Markdown

@bcampardou bcampardou commented Jul 31, 2017

Simply disable the timer when Bert.defaults.hideDelay = -1 for example.

#41 How can I keep bert alert on screen and manually close it?

Edit : with latest commit also fix #23 #37 #13

You can configure all alerts to be manually closed :
Bert.defaults.hideDelay = -1

or specify an alert to be manually closed by using :

    Bert.alert({
        message:'Event updated !', 
        type:'success', 
        hideDelay: -1
    });
    Bert.alert({
        message:'Event updated !', 
        type:'success', 
        hideDelay: 3000
    });

or

Bert.alert('Event updated !', 'success', null, null, -1);
Bert.alert('Event updated !', 'success', null, null, 3000);

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alerts don't stay on page (make autohide optional)

5 participants